//
//  WebViewController.swift
//  Retail
//
//  Created by zhangjikuan on 2020/6/30.
//  Copyright © 2020 aqdeal. All rights reserved.
//

import UIKit
import WebKit
class WebViewController: BaseViewController {
    
    public var urlString:String = ""
    
    override func viewDidLoad() {
        super.viewDidLoad()

        let configuration = WKWebViewConfiguration()
        
        let webView = WKWebView(frame: view.bounds, configuration: configuration)
        
        view.addSubview(webView)
        if self.urlString.hasPrefix("http") {
            webView.load(URLRequest(url: URL(string: self.urlString)!))

        } else {
            webView.load(URLRequest(url: URL(string: "https://blog.csdn.net/qq_14920635/article/details/103013745")!))
        }
        
        

    }
    

    /*
    // MARK: - Navigation

    // In a storyboard-based application, you will often want to do a little preparation before navigation
    override func prepare(for segue: UIStoryboardSegue, sender: Any?) {
        // Get the new view controller using segue.destination.
        // Pass the selected object to the new view controller.
    }
    */

}
